package cn.david.basic.util;

import lombok.Data;

import java.io.Serializable;
@Data
public class AjaxResult {
    private Boolean success = true;
    private String message = "操作成功!";
    private Object resultObj;
    private Serializable sessionId;
    public static AjaxResult me(){
        return new AjaxResult();
    }
    public AjaxResult setMessage(String message) {
        this.success = false;
        this.message = message;
        return this;
    }
}
